package com.vjwealth.android.nos.entity

/**
 * projectName KNOS
 * date 2017/9/27
 * description com.vjwealth.android.nos.entity
 */
data class Result(
        val meta: Meta
)

data class Meta(
        val message: String, //ok
        val success: Boolean //true
)

data class MapData(
		val key: Int,
		val value: String,
		val extra: String
)

/**
 * 登录数据
 */
data class LoginEntity(
		val data: LoginData,
		val meta: Meta
)
data class LoginData(
		val account: String, //AC201702240000022552
		val customerId: Int, //4226
		val invitationCode: String, //78egy9m
		val phone: String, //15618535269
		val token: String //eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcklkIjoiNDIyNiIsImlzcyI6ImNhcm5vcyJ9.hUdBk_v57aD4dPoxR48ReiEbE9tLJyemYO--11h31UA
)

/**
 * 用户基础数据
 */
data class CustomerInforEntity(
		val data: CustomerInforData,
		val meta: Meta
)
data class CustomerInforData(var account: String = "",
                               var avatar: String? = null,
                               var bgImage: String? = null,
                               var carNum: String? = null,
                               var gender: String? = null,
                               var nickname: String? = null,
                               var sign: String? = null,
                               var vipType: String? = null)

/**
 * 爱车选择列表
 */
data class HomeCarEntity(
		val data: List<HomeCarData>,
		val meta: Meta
)
data class HomeCarData( var carTypeName: String = "",
                          var cusCarId: Int = 0,
                          var image: String = "",
                          var carNumber: String = "")

/**
 * 救援列表
 */
data class RescueListEntity(
		val data: RescueListData,
		val meta: Meta
)
data class RescueListData(
		var showButton: Boolean,
		var rescueList: List<RescueListItemData>
)
data class RescueListItemData(
		var accidentType: String,
		var address: String,
		var carNumber: String,
		var status: String,
		var timeStr: String,
		var cusRescueImages: List<String>
)

/**
 * 救援车辆
 */
data class RescueCarEntity(
		val data: List<RescueCarData>,
		val meta: Meta
)

data class RescueCarData(
		var id: Int,
		var carNumber: String,
		var insuranceTel: String
)




